package com.nbsaas.boot.manufacturing.rest.convert;

import com.nbsaas.boot.manufacturing.data.entity.BomItem;
import com.nbsaas.boot.manufacturing.api.domain.simple.BomItemSimple;

import com.nbsaas.boot.rest.api.Converter;

/**
* BOM项目-列表对象转换器
*/

public class BomItemSimpleConvert implements Converter<BomItemSimple, BomItem> {




@Override
public BomItemSimple convert(BomItem source) {
    BomItemSimple result = new BomItemSimple();

                result.setNote(source.getNote());
                result.setBomId(source.getBomId());
                result.setItemType(source.getItemType());
                result.setQuantity(source.getQuantity());
                result.setLevel(source.getLevel());
                result.setTechnicalRequirements(source.getTechnicalRequirements());
                result.setItemNo(source.getItemNo());
                result.setIsOptional(source.getIsOptional());
                result.setSort(source.getSort());
                result.setMaterialId(source.getMaterialId());
                result.setWasteRate(source.getWasteRate());
                result.setAddDate(source.getAddDate());
                result.setSubstituteMaterials(source.getSubstituteMaterials());
                result.setItemName(source.getItemName());
                result.setUnit(source.getUnit());
                result.setParentItemId(source.getParentItemId());
                result.setActualQuantity(source.getActualQuantity());
                result.setUnitCost(source.getUnitCost());
                result.setIsCritical(source.getIsCritical());
                result.setPosition(source.getPosition());
                result.setId(source.getId());
                result.setQualityRequirements(source.getQualityRequirements());
                result.setTotalCost(source.getTotalCost());
                result.setLastDate(source.getLastDate());


    return result;
}

}